package com.ce.pms.occupation.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.ce.pms.base.vo.SearchVO;
import com.sitechasia.webx.core.model.IViewObject;

/**
 * 物品托管查询VO
 * @author 王浩羽
 *
 */
public class ThingEntrustQueryConditionVO extends SearchVO implements IViewObject
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4884232168294145366L;

	/**
	 * 主键
	 */
	private Long keyword;

	/**
	 * 房号ID
	 */
	private Long houseId;

	/**
	 * 房号
	 */
	private String houseNumber;
	
	/**
	 * 管理房Id
	 */
	private Long coalitionHouseId;

	/**
	 * 托管人
	 */
	private String entrustMan;

	/**
	 * 托管物品
	 */
	private String entrustItem;

	/**
	 * 接受人
	 */
	private Long accepterId;
	
	/**
	 * 接受人名称
	 */
	private String accepterName;

	/**
	 * 接受日期
	 */
	private Date acceptDate;

	/**
	 * 托管原因
	 */
	private String entrustReason;
	
	/**
	 * 楼栋ID
	 */
	private Long buildingId;
	/**
	 * 楼栋名称
	 */
	private String buildingName;
	
	/**
	 * 归还人
	 */
	private String givebackMan;

	/**
	 * 归还: 0 全部； 1 归还；2 未归还 
	 */
	private String returnStatus = RETURN_STATUS_BOTH;
	/**
	 * 归还状态 ： 全部
	 */
	public static final String RETURN_STATUS_BOTH = "0";
	/**
	 * 归还状态 ：归还
	 */
	public static final String RETURN_STATUS_RETURNED = "1";
	/**
	 * 归还状态 ：未归还  
	 */
	public static final String RETURN_STATUS_NOT_RETURNED = "2";
	
	/**
	 * 归还日期
	 */
	private Date givebackDate;
	/**
	 * 是否有效。 1 -有效 ； 0-无效 （默认有效，用于逻辑删除）
	 */
	private String enableState;
	/**
	 * 归还描述
	 */
	private String givebackDescription;
	
	public Long getKeyword()
	{
		return keyword;
	}
	public Long getHouseId()
	{
		return houseId;
	}
	public String getHouseNumber()
	{
		return houseNumber;
	}

	public Long getCoalitionHouseId()
	{
		return coalitionHouseId;
	}

	public String getEntrustMan()
	{
		return entrustMan;
	}
	public String getEntrustItem()
	{
		return entrustItem;
	}
	public Long getAccepterId()
	{
		return accepterId;
	}
	public String getAccepterName()
	{
		return accepterName;
	}
	public Date getAcceptDate()
	{
		return acceptDate;
	}
	public String getEntrustReason()
	{
		return entrustReason;
	}
	public Long getBuildingId()
	{
		return buildingId;
	}
	public String getBuildingName()
	{
		return buildingName;
	}
	public void setKeyword(Long keyword)
	{
		this.keyword = keyword;
	}
	public void setHouseId(Long houseId)
	{
		this.houseId = houseId;
	}
	public void setHouseNumber(String houseNumber)
	{
		this.houseNumber = houseNumber;
	}

	public void setCoalitionHouseId(Long coalitionHouseId)
	{
		this.coalitionHouseId = coalitionHouseId;
	}
	
	public void setEntrustMan(String entrustMan)
	{
		this.entrustMan = entrustMan;
	}
	public void setEntrustItem(String entrustItem)
	{
		this.entrustItem = entrustItem;
	}
	public void setAccepterId(Long accepterId)
	{
		this.accepterId = accepterId;
	}
	public void setAccepterName(String accepterName)
	{
		this.accepterName = accepterName;
	}
	public void setAcceptDate(Date acceptDate)
	{
		this.acceptDate = acceptDate;
	}
	public void setEntrustReason(String entrustReason)
	{
		this.entrustReason = entrustReason;
	}
	public void setBuildingId(Long buildingId)
	{
		this.buildingId = buildingId;
	}
	public void setBuildingName(String buildingName)
	{
		this.buildingName = buildingName;
	}
	public String getGivebackMan()
	{
		return givebackMan;
	}
	public Date getGivebackDate()
	{
		return givebackDate;
	}
	public void setGivebackMan(String givebackMan)
	{
		this.givebackMan = givebackMan;
	}
	public void setGivebackDate(Date givebackDate)
	{
		this.givebackDate = givebackDate;
	}
	public String getReturnStatus()
	{
		return returnStatus;
	}
	public void setReturnStatus(String returnStatus)
	{
		this.returnStatus = returnStatus;
	}
	public String getEnableState()
	{
		return enableState;
	}
	public void setEnableState(String enableState)
	{
		this.enableState = enableState;
	}
	public String getGivebackDescription()
	{
		return givebackDescription;
	}
	public void setGivebackDescription(String givebackDescription)
	{
		this.givebackDescription = givebackDescription;
	}

	@Override
	public String toString()
	{
		
		return ToStringBuilder.reflectionToString(this);
	}
}
